<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="MSHTML 6.00.6000.17080" name="GENERATOR" />
<meta name="author" content="York.chow@actionsky.com" />
<meta http-equiv="PRAGMA" content="NO-CACHE">
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<link rel="SHORTCUT ICON" href="../logo.ico" />
<link rel="stylesheet" type="text/css" href="../assets/reset-fonts-grids.css">
<link rel="stylesheet" type="text/css" href="../assets/search-core.css">
<link rel="stylesheet" type="text/css" href="../assets/search.css">
<link rel="stylesheet" type="text/css" href="../assets/advresult.css">
<title>爱可生安全企业级搜索</title>
<style type="text/css">
#spatialTourLink:link,
#spatialTourLink:hover,
#spatialTourLink:visited
{
color: blue;
}
</style>
</head>
<body class="yui-skin-sam sidebar-left">
	<div id="doc3" class="sidebar-left yui-t7">
	<div id="hd">
	<!-- Header Links -->
	<div class="toplinks">
	<p><br/></p>
	</div>
	<script type="text/javascript">
	function checkForm(thisForm) {
		var q = encodeURIComponent(document.getElementById('q').value);
		var groupBoxes = document.searchForm.group;
		/* If no source groups are selected, select "All" */
		if(groupBoxes.value == null){
			for (var i=0; i<groupBoxes.length; i++) {
				if (groupBoxes[i].value == "0") {
					groupBoxes[i].checked = true;
				}
			}
		}
		if(q.length <= 0)
		{	
			alert("请填写搜索内容!");
			return false;
		}else{		   
		 	thisForm.submit();
		}
	}
	function callCheckForm(e,thisForm) {
		var code;
		if (!e) {
			var e = window.event;
		}
		if (e.keyCode) {
			code = e.keyCode;
		}
		else if (e.which)
		{
			code = e.which;
		}
		//alert('keyCode ' + e.keyCode);
		if (e.keyCode == 13) {
			checkForm(thisForm);
		}
	}
	</script>
	<style type="text/css">
	#checkedGroupsPopup
	{
	position: absolute;
	text-align: left;
	background: #FFF;
	margin: -.5ex 2ex;
	width: 20ex;
	line-height: 2.5;
	z-index: 1000;
	overflow: hidden;
	}
	#checkedGroupsPopup .bd
	{
	border:solid 1px #aaa;
	padding:.7ex;
	padding-bottom:1.2ex;
	}
	#checkedGroupsPopup iframe
	{
	display:none;/*sorry for IE5*/
	display/**/:block;/*sorry for IE5*/
	position:absolute;/*must have*/
	top:0;/*must have*/
	left:0;/*must have*/
	z-index:-1;/*must have*/
	filter:mask();/*must have*/
	width:3000px;/*must have for any big value*/
	height:3000px;/*must have for any big value*/;
	}
	#checkedGroupsPopup
	{
	top: 12px;
	right: -10px;
	width: 35ex; /*was 25 - width of the popup */
	}
	#checkedGroupsPopup .oneCbGroup
	{
	line-height: 1.8;
	}
	#withinGroupsLink:link,
	#withinGroupsLink:hover,
	#withinGroupsLink:visited
	{
	color: #000;
	}
	#withinGroupsLink:hover,
	{
	color: #FF0000;
	}
	.logoSpacer
	{
	padding-right:56px;
	}
	</style>
	<div style="clear: both;">
	<form id="searchForm" onSubmit="return checkForm(this)" name="searchForm" method="GET" action="search">
	<NOSCRIPT>This product requires use of a browser that supports JavaScript. It must be run with scripting enabled.</NOSCRIPT>
	<input type="hidden" name="search.timezone" id="searchForm.timezone" value="">
	<script type="text/javascript">
	document.getElementById("searchForm.timezone").value = new Date().getTimezoneOffset();
	</script>
	<input type="hidden" name="start" value="1">
	<input type="hidden" name="end" value="10">
	<input type="hidden" name="num" value="10">
	
	<input type="hidden" name="search_dupid" value="">
	<input type="hidden" name="exttimeout" value="false">
	<input type="hidden" name="vis" id="searchForm.vis" value="" disabled="disabled">
	<!--  
	<script type="text/javascript">
	YAHOO.util.Event.onAvailable( "searchForm.vis", function() {
	document.getElementById("searchForm.vis").value = "";
	document.getElementById("searchForm.vis").disabled = true;
	});
	</script>
	-->
	<table align="left" cellpadding="0" cellspacing="0" summary="Searchbox">
	<tr>
	<td headers="" rowspan="2">
	<a href="../default.htm"><img src="../assets/actionlogo.gif"
	alt="Oracle Secure Enterprise Search" border="0"></a>
	&nbsp;</td>
	<td headers="" colspan="2" align="left" class="sources">
	</td>
	</tr>
	<tr>
	<td headers="" align="left" colspan="2" nowrap="nowrap">
	<div class="qbLinkSpacer">
	&nbsp;
	
	</div>
	<label>&nbsp; <input type="text" id="q" name="q" style="width: 18em;" size="50" maxlength="2048" value="${sessionScope.q}" title="Search" onkeyup="callCheckForm(event,searchForm)"></label>
	<a href="#" id="advSearchLink" onclick="this.blur(); toggleWithinGroups(); return false;"><span style="font-family: arial,helvetica,sans-serif">条件过滤 </span><img id="withinGroupsLinkArrow" width="9" height="9" alt="Search within groups" src="../assets/collapse.gif"></a>
	<script type="text/javascript">
	function toggleWithinGroups()
	{
		var popupEl = document.getElementById('checkedGroupsPopup');
		if (popupEl.style.display == "none")
		{
			popupEl.style.display = "";
		}
		else
		{
			popupEl.style.display = "none";
		}
	}
	</script>
	<span style="position: relative; zoom: 1;"><span style="display: none;" id="checkedGroupsPopup"><div class="bd">
	<a href="#" onclick="this.blur(); toggleWithinGroups(); return false;" title="Close"><img border="0" src="../assets/close12_1.gif" width="12" height="12" alt="Close" align="right"></a> <div id="groupCheckboxes">
	<div class="oneCbGroup" style="font-family: arial,helvetica,sans-serif">
	<input type="radio" name="group" value="0" <c:if test="${group == 0}">checked="checked"</c:if>> 所有
	</div>
	<div class="oneCbGroup" style="font-family: arial,helvetica,sans-serif">
	<input type="radio" name="group" value="1" <c:if test="${group == 1}">checked="checked"</c:if>> 内容
	
	</div>
	<div class="oneCbGroup" style="font-family: arial,helvetica,sans-serif">
	<input type="radio" name="group" value="2" <c:if test="${group == 2}">checked="checked"</c:if>> 文档
	</div>
	</div>
	<input type="hidden" name="sw" value="t">
	</div>
	<!--[if lte IE 6.5]><iframe src="javascript:false;"></iframe><![endif]-->
	</span></span>
	&nbsp;&nbsp;&nbsp;
	<a href="#"><img src="../assets/search_generic_18x18.png" alt="Search" align="absmiddle" onclick="checkForm(document.searchForm)" /></a>
	<input type="submit" name="formTop" style="display:none">
	&nbsp;
	</td>
	</tr>
	<tr>
	<td headers="" nowrap="nowrap" colspan="3">
	<!-- Inline Attribute Filters -->
	</td>
	</tr>
	</table>
	</form>

	</div>

	<form name="p_altkeyform">
	<input type="hidden" name="p_altquery" value="mysql 4">
	
	</form>

	<div id="divSuggestedContent" ></div>
	<div class="contextBar">
	<div class="left">
	<span class="breadcrumbs">条件过滤: 所有
	</span>
	</div>
	<div class="right">
	<c:choose>
		<c:when test="${null==sessionScope.search_result}">
			<span id="hitReport"><font color="red">&nbsp;没有关于这个搜索条目匹配的结果。</font></span>
		</c:when>
		<c:otherwise>
			<span id="hitReport">&nbsp;找到<c:out value="${sessionScope.search_match.matches}"/>条结果<nobr style="white-space: nowrap;">  （用时 <c:out value="${sessionScope.search_match.time}"/> 秒）&nbsp;</nobr></span>
		</c:otherwise>
	</c:choose>
	
	</div>
	</div>
	</div>
	<div id="bd">
	<div id="yui-main">
	<div class="yui-b" style="margin-top: 10px;">
	<div id="divShowSidebar" style="visibility: hidden;"><a href="#" class="ses_toggleSidebar" onclick="this.blur();" title="Show Result Clusters"><img src="../assets/show_sidebar.png" alt="Show Result Clusters"></a></div>
	<br class="clearboth">
	<div id="divResults">
	
	<!-- Iterator List -->
		
		<c:choose>
		<c:when test="${null==sessionScope.search_result}">
			<div style="margin-left: 30px;" id="divResults">
			<b>我们没有找到任何关于${sessionScope.q }的结果。</b><br><br>
			爱可生建议您：<br>
			<br>
			<img align="absmiddle" width="3" height="3" id="Bullet" alt="Bullet" src="../assets/red_bullet.gif">&nbsp;验证您输入的内容。<br/>
			<img align="absmiddle" width="3" height="3" id="Bullet" alt="Bullet" src="../assets/red_bullet.gif">&nbsp;尝试搜索其他关键词。<br/>
			<img align="absmiddle" width="3" height="3" id="Bullet" alt="Bullet" src="../assets/red_bullet.gif">&nbsp;尝试搜索尽可能少的关键词。<br/>
			</div>
		</c:when>
		<c:otherwise>
			<div class="divResultHit">
			<c:forEach var="list" items="${sessionScope.search_result}">
			<table border="0" xmlns:XSLUtil="http://www.oracle.com/XSL/Transform/java/oracle.search.util.XSLUtil" xmlns:Locale="http://www.oracle.com/XSL/Transform/java/java.util.Locale" xmlns:TimeZone="http://www.oracle.com/XSL/Transform/java/java.util.TimeZone" xmlns:DateFormat="http://www.oracle.com/XSL/Transform/java/java.text.DateFormat" xmlns:ResourceBundle="http://www.oracle.com/XSL/Transform/java/oracle.search.query.app.QueryAppResBunWrapper">
			<tr>
				<td><span class="title"><a href="${list.link}" target="_blank"><c:out value="${list.title}" escapeXml="false"/></a></span></td>
			</tr>
			<tr>
				<td>
					<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td><span class="description"><c:out value="${list.content}" escapeXml="false"/></span><br>
						<span class="lastModified"><span class="lastModified"><c:out value="${list.link}"/></span></span>
					</td>
					</tr>
					</table>
				</td>
			</tr>
			</table>
			</c:forEach>
			</div>
		</c:otherwise>
		</c:choose>
		
	</div>
	</div>
	</div>
	</div> 
	<div id="ft">
	<!-- Pagination Links -->
	<script type="text/javascript">
	function searchPageLink(startnum, endnum)
	{
		document.forms["searchForm"].elements["start"].value = startnum;
		document.forms["searchForm"].elements["end"].value = endnum;
		document.forms["searchForm"].submit();
	}
	/*
	function paginateLocal(key, startnum, endnum)
	{
		// if paginate() returns true, we're done.. client-side operation.
		if( ORACLE.ses.ResultsView.paginate( key, startnum, endnum ) )
			return;
		// else, submit the form to get page of results from server
		searchPageLink(startnum, endnum);
	}*/
	</script>
	
	<c:if test="${null!=sessionScope.search_result}">
		<div id="divPageLinks" class="pageLinks">
		<span class="pageLinksHeader">结果页</span>
		
		<c:out value="${sessionScope.results_page}" escapeXml="false"/>
		
		</div>
	</c:if>
	
	
	<br>
	<!-- Footer Links -->
	<!-- Bottom Line -->
	<!-- Style added for search.oracle.com -->
	<style type="text/css">
	.footerLinks {font-size:10px;}
	a.footerLinks:link {color:#000;text-decoration:none;}
	a.footerLinks:visited {color:#000;text-decoration:none;}
	a.footerLinks:hover {color:#FF0000;text-decoration:underline;}
	.greybarhomebot{background: #DCDCDC;height: 7px; margin-top: 7px;}
	</style>
	<!--footer for search.oracle.com -->
	<div class="greybarhomebot"> </div>
	
	<div>
	<div style="padding: 10px; float: left;"><a href="http://localhost:8080/wwwactionskycom/corporate/contact/index.jsp" onclick="navTrack('ocomsearch','en','footer','Hardware and Software Engineered to Work Together');"><img height="34" border="0" width="182" src="../assets/hotline.gif" alt="Hotline"></a></div>
	<div style="padding: 8px; float: right;">
	<a href='http://localhost:8080/wwwactionskycom/corporate/index.jsp' class='footerLinks'>关于爱可生</a> | 
		  <a href='http://localhost:8080/wwwactionskycom/rss/news-feed'> 
		  <img src='http://localhost:8080/wwwactionskycom/assets/feed-icon-14x14.png' alt='Action RSS Feeds' style='margin-bottom: 1px;' align='absmiddle' border='0' height='14' width='14'/></a> | 
		  <a href='http://localhost:8080/wwwactionskycom/corporate/contact/index.jsp' class='footerLinks'>联系我们</a> | 
		  <a href='http://localhost:8080/wwwactionskycom/sitemaps/index.jsp' class='footerLinks'>站点地图</a> | 
		  <a href='http://localhost:8080/wwwactionskycom/legal/index.jsp' class='footerLinks'>法律声明</a>
	</div>
	</div>
	
	</div>
</body>
</html>